package com.tzz.entity;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class Station implements Serializable {
    private int id;
    @NotNull
    @Min(1)
    private int stationCode;
//    @NotNull
    @NotBlank(message = "stationName不能为空！！！！！！！！")
    private String stationName;
//    @NotNull
    @NotBlank
    private String stationMongoCode;
}
